package cn.befory.constants;

/**
 * @author DQ
 * @version 1.0
 * @since 2019/10/15
 * Created by DQ on 2019/10/15.
 */
public class PermContants {
    /**
     * 权限类型
     */
    public enum Perm{
        //菜单
        MENU(1)
        //功能按钮
        ,BUTTON(2)
        ;
        private int type;
        Perm(int type) {
            this.type = type;
        }
        public int getType() {
            return type;
        }
    }

    public enum PermRank{
        ALL("all"),PARENT("parent");

        private String name;

        PermRank(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }
    }
}
